package middleware

import (
	"fmt"
	"github.com/gin-gonic/gin"
)

func LogResult(param gin.LogFormatterParams) string {
	return fmt.Sprintf("[GIN] %s | %3d | %15s | %s %-7s\n",
		param.TimeStamp.Format("2006/01/02 - 15:04:05"),
		param.StatusCode,
		param.ClientIP,
		param.Method,
		param.Path,
	)
}
